//
//  ManCell.m
//  SweetComics
//
//  Created by dlios on 15-1-30.
//  Copyright (c) 2015年 LeeZhe. All rights reserved.
//

#import "ManCell.h"

@implementation ManCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.myImageView = [[UIImageView alloc] init];
        self.myImageView.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.myImageView];
        [_myImageView release];
        
        self.name = [[UILabel alloc] init];
        self.name.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.name];
        [_name release];
        
        self.detail = [[UILabel alloc] init];
        self.detail.backgroundColor = [[UIColor cyanColor] init];
        [self.contentView addSubview:self.detail];
        [_detail release];
        
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.imageView.frame = CGRectMake(10, 10, 80, 90);
    self.myImageView.layer.cornerRadius = 50;
    self.name.frame = CGRectMake(110, 20, 200, 30);
    self.detail.frame = CGRectMake(110, 70, 200, 30);
}

-(void)dealloc
{
    [_myImageView release];
    [_name release];
    [_detail release];
    [super dealloc];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
